import IndexRouter from './router/IndexRouter.js'
import { Provider } from 'react-redux'
import { store, persistor } from './redux/store.js'
// 使用 PersistGate 来确保下一次打开网站或者刷新后自动打开/加载上次的数据
import { PersistGate } from 'redux-persist/integration/react'
import './App.css'
import { ConfigProvider } from 'antd'
import zhCN from 'antd/lib/locale/zh_CN'
import 'moment/locale/zh-cn'

export default function App() {
	return (
		<Provider store={store}>
			<PersistGate loading={null} persistor={persistor}>
				<ConfigProvider locale={zhCN}>
					<IndexRouter></IndexRouter>
				</ConfigProvider>
			</PersistGate>
		</Provider>
	)
}